package com.woniuxy.feign;

import com.woniuxy.entity.UploadResult;
import com.woniuxy.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "campus-oss")
public interface OSSApi {
    @PostMapping("/upload")
    public ResponseData<UploadResult> upload(@RequestParam("file") MultipartFile file);
}
